package com.SmartCare.common.dto.medicine;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.SmartCare.pojo.medicine.MedicationFrequency;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 药单项
 * </p>
 *
 * @author young
 * @since 2023-09-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class MedicationListDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */

    private Long id;

    /**
     * 药单编号
     */

    private Long listNum;

    /**
     * 药物
     */
    private MedicationDTO medication;

    /**
     * 频率
     */
    private MedicationFrequency frequency;

    /**
     * 剂量
     */
    private BigDecimal dosage;

    /**
     * 剂量单位
     */
    private String unit;

    /**
     * 老人id
     */

    private Long elderlyId;

    /**
     * 护工的用户id
     */

    private Long nurseId;

    /**
     * 用药开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startTime;

    /**
     * 用药结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endTime;

    /**
     * 时效
     */
    private String term;

    /**
     * 用药时间，使用分号将多个时间隔开
     */
    private String takeTime;

    /**
     * 药物剂型
     */
    private String type;

    /**
     * 给药途径
     */
    private String mode;
}
